
#include <iostream>

class adder
{
public:
    int add(int x, int y) { return x + y; }
};

class calculator
{
private:
    adder Add;

public:
    int add(int x, int y) { return Add.add(x, y); }
};

class printer
{
public:
    void print(int x) { std::cout << x << std::endl; }
};

class solver
{
private:
    calculator Cal;
    printer Pri;

public:
    int data;
    int add(int x) { data = Cal.add(data, x); }
    void print() { Pri.print(data); }
};

int main()
{
    solver Solver;
    Solver.data = 114514;
    Solver.add(1910810);
    Solver.print();
}